<h1>Sign up as a new user</h1>
<% @user.password = @user.password_confirmation = nil %>

<%= error_messages_for :user %>
<% form_for :user, :url => users_path do |f| -%>
	<p><%= f.label :login, 'Логин' %><br/>
	<%= f.text_field :login %></p>

	<p><%= f.label :email, 'Электронная почта' %><br/>
	<%= f.text_field :email %></p>

	<p><%= f.label :password, 'Пароль:' %><br/>
	<%= f.password_field :password %></p>

	<p><%= f.label :password_confirmation, 'Ещё разок:' %><br/>
	<%= f.password_field :password_confirmation %></p>
	
	<p><%= submit_tag 'Sign up' %></p>
<% end -%>
